#include "common.h"


Mail_info *find_mail_node(unsigned long source_ip, unsigned long dest_ip, unsigned short source_port, unsigned short dest_port, int *is_sent);


Attach_info *find_attach_node(unsigned long source_ip, unsigned long dest_ip, unsigned short source_port, unsigned short dest_port, int *is_sent, unsigned short packet_type);


Mail_info *insert_mail_node(char *srcMAC, struct iphdr *pip, struct tcphdr *ptcp, unsigned short type);

Attach_info *insert_attach_node(struct iphdr *pip, struct tcphdr *ptcp, unsigned short type, unsigned short packet_type);

int mail_type(char *data);
